﻿@model IEnumerable<StarcraftDemo4.Result>

@{
    ViewBag.Title = "index";
}

<h2>list of all the things!</h2>
@Html.ActionLink("back to home", "../Home")

<table id="resulttbl">
    <tr>
        <th>
            GameId
        </th>
        <th>
            Minerals 
        </th>
        <th>
            Gas
        </th>
        <th>
            Marines
        </th>
        <th>
            Marauder
        </th>
        <th>
            SCV
        </th>
        <th>
            Time
        </th>
        <th>
            Refinery
        </th>
        <th>
            CommandCenter
        </th>
        <th>
            Barracks
        </th>
        <th>
            TechLab
        </th>
        <th>
            Reactor
        </th>
        <th>
            SupplyDepot
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.GameId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Minerals)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Gas)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Marines)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Marauder)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SCV)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Time)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Refinery)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CommandCenter)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Barracks)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TechLab)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Reactor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SupplyDepot)
        </td>
        <td>
            @Html.ActionLink("edit", "Edit", new {  id=item.GameId  }) |
            @Html.ActionLink("details", "Details", new {  id=item.GameId  }) |
            @Html.ActionLink("delete", "Delete", new {  id=item.GameId  }) |
            @Html.ActionLink("moves", "../Game/Details", new {  id=item.GameId  })
        </td>
    </tr>
}

</table>
